<?php $this->load->view('admin/_begin') ?>
<script type="text/javascript">
  $(document).ready(function(){
    $('#shortcuts').hide();
  });
</script>
<form action="<?php echo site_url('admin/setting/update') ?>" class="crud" method="post" accept-charset="utf-8">	
  <div class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
    <ul class="tab-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
      <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
        <a href="#general" title="">
          <span><?php echo $this->lang->line('label.general') ?></span>
        </a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#end_user" title="">
          <span><?php echo $this->lang->line('label.end_user') ?></span>
        </a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#files" title="">
          <span><?php echo $this->lang->line('label.files') ?></span>
        </a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#integration" title="">
          <span><?php echo $this->lang->line('label.integration') ?></span>
        </a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#email" title="">
          <span><?php echo $this->lang->line('label.email') ?></span>
        </a>
      </li>
      <li class="ui-state-default ui-corner-top">
        <a href="#paypal" title="">
          <span><?php echo $this->lang->line('label.paypal') ?></span>
        </a>
      </li>
    </ul>
    <div class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom" id="general">
      <fieldset>
        <ul class="ui-sortable">
          <li class="">
            <label for="enviroment">
              <?php echo $this->lang->line('label.enviroment') ?>
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="enviroment" 
                <?php echo isset($settings['enviroment']) && $settings['enviroment'] == EVR_TEST ? 'checked="checked"' : '' ?>
                       value="<?php echo EVR_TEST?>" name="enviroment"/> <?php echo $this->lang->line('label.test') ?></label>
              <label class="inline">
                <input type="radio" id="enviroment" 
                <?php echo isset($settings['enviroment']) && $settings['enviroment'] == EVR_PRO ? 'checked="checked"' : '' ?>
                       value="<?php echo EVR_PRO?>" name="enviroment"/> <?php echo $this->lang->line('label.prod') ?></label>
            </div>            
          </li>
          <li>
            <label for="site_name">
              <?php echo $this->lang->line('label.site_name') ?>
            </label>
            <div class="input type-text">
              <input name="site_name" value="<?php echo isset($settings['site_name']) ? $settings['site_name'] : '' ?>" 
                     id="site_name" class="text width-20" type="text"/>
            </div>
          </li>          
          <li>
            <label for="metadata_keywords">
              <?php echo $this->lang->line('label.metadata.keywords') ?>
            </label>
            <div class="input type-text">
              <input name="metadata_keywords" 
                     value="<?php echo isset($settings['metadata_keywords']) ? $settings['metadata_keywords'] : '' ?>" 
                     id="metadata_keywords" class="text width-20" type="text"/>								
            </div>
          </li> 
          <li>
            <label for="metadata_description">
              <?php echo $this->lang->line('label.metadata.description') ?>
            </label>
            <div class="input type-text">
              <input name="metadata_description" 
                     value="<?php echo isset($settings['metadata_description']) ? $settings['metadata_description'] : '' ?>" 
                     id="metadata_description" class="text width-20" type="text"/>
            </div>
          </li> 
          <li>
            <label for="date_format">
              <?php echo $this->lang->line('label.date_format') ?>								
              <small>
                <?php echo $this->lang->line('label.setting.date_format.note') ?>	
              </small>								
            </label>
            <div class="input type-text">
              <input name="date_format" value="<?php echo isset($settings['date_format']) ? $settings['date_format'] : '' ?>" 
                     id="date_format" class="text width-20" type="text"/>
            </div>
          </li>
          <li id="js_date_format" class="">
            <label for="js_date_format">
              <?php echo $this->lang->line('label.js_date_format') ?>								
              <small>
                <?php echo $this->lang->line('label.setting.js_date_format.note') ?>	
              </small>								
            </label>
            <div class="input type-text">
              <input name="js_date_format" value="<?php echo isset($settings['js_date_format']) ? $settings['js_date_format'] : '' ?>" 
                     id="js_date_format" class="text width-20" type="text"/>
            </div>
          </li>
          <li id="max_record" class="even">
            <label for="max_record">
              <?php echo $this->lang->line('label.max_record') ?>
            </label>

            <div class="input type-select">
              <select style="visibility: visible" id="selW8M" name="max_record" class="width-20 chzn chzn-done">
                <option value="10" <?php echo isset($settings['max_record']) && $settings['max_record'] == '10' ? 'selected="selected"' : '' ?> >10</option>
				<option value="15" <?php echo isset($settings['max_record']) && $settings['max_record'] == '15' ? 'selected="selected"' : '' ?> >15</option>
				<option value="20" <?php echo isset($settings['max_record']) && $settings['max_record'] == '20' ? 'selected="selected"' : '' ?> >20</option>
                <option value="25" <?php echo isset($settings['max_record']) && $settings['max_record'] == '25' ? 'selected="selected"' : '' ?>>25</option>
                <option value="30" <?php echo isset($settings['max_record']) && $settings['max_record'] == '30' ? 'selected="selected"' : '' ?>>30</option>
                <option value="35" <?php echo isset($settings['max_record']) && $settings['max_record'] == '35' ? 'selected="selected"' : '' ?>>35</option>
				<option value="40" <?php echo isset($settings['max_record']) && $settings['max_record'] == '40' ? 'selected="selected"' : '' ?>>40</option>
				<option value="45" <?php echo isset($settings['max_record']) && $settings['max_record'] == '45' ? 'selected="selected"' : '' ?>>45</option>
                <option value="50" <?php echo isset($settings['max_record']) && $settings['max_record'] == '50' ? 'selected="selected"' : '' ?>>50</option>
                <option value="100" <?php echo isset($settings['max_record']) && $settings['max_record'] == '100' ? 'selected="selected"' : '' ?>>100</option>
              </select>
            </div>
          </li>
          <li class="" id="encrypt_name_upload">
            <label for="require_active_via_email">
              <?php echo $this->lang->line('label.require_active_via_email') ?>
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="require_active_via_email" 
                <?php echo isset($settings['require_active_via_email']) && $settings['require_active_via_email'] == '1' ? 'checked="checked"' : '' ?>
                       value="1" name="require_active_via_email"/> <?php echo $this->lang->line('label.yes') ?></label>
              <label class="inline">
                <input type="radio" id="require_active_via_email" 
                <?php echo isset($settings['require_active_via_email']) && $settings['require_active_via_email'] == '0' ? 'checked="checked"' : '' ?>
                       value="0" name="require_active_via_email"/> <?php echo $this->lang->line('label.no') ?></label>
            </div>            
          </li>
        </ul>
      </fieldset>
    </div>
    <div class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="end_user">
      <fieldset>
        <ul class="ui-sortable">
          <li>
            <label for="country_id"><?php echo $this->lang->line('label.end_user.default.country_id') ?></label>
            <div class="input">
              <select id="country_id" name="default_end_user_country_id" class="chzn chzn-done" style="visibility: visible;">
                <option value="0">
                  <?php echo $this->lang->line('label.option.select') ?>
                </option>
                <?php
                $ref_objs = $this->country_model->get_all();
                foreach ($ref_objs as $ref) {
                  ?>
                  <option value="<?php echo $ref["id"] ?>"
                          <?php echo empty($settings["default_end_user_country_id"]) || $settings["default_end_user_country_id"] != $ref["id"] ? "" : 'selected="selected"' ?>>
                            <?php echo $this->country_model->to_string($ref) ?>
                  </option>
                <?php } ?>
              </select>
            </div>
          </li>
          <script type="text/javascript">
            var country_id = 0;
            jQuery(document).ready(function(){
              $('#country_id').bind({
                change: function (){detect_country($(this).val());},
                blur: function (){detect_country($(this).val());}
              });      
            });
            function detect_country(id){
              if(country_id != id){
                country_id = id;
                if(id){
                  $.post('<?php echo site_url('admin/ajax/list_json_city') ?>', {id : id}, function(data){
                    if(data){
                      $('#city_id').html('');
                      $.each(data, function(key, value){
                        $('#city_id').append('<option '+
                          (value['id'] == '<?php echo isset($city_id) ? $city_id : 0 ?>' ? 'selected="selected"' :'' )
                          +' value="'+value['id']+'">'+ value['name'] +'</option>');
                      })
                    } else {
                      $('#city_id').html('<option value=""><?php echo $this->lang->line('label.city.select') ?></option>');
                    }
                  }, 'json');
                } else {
                  $('#city_id').html('<option value=""><?php echo $this->lang->line('label.city.select') ?></option>');
                }
              }
            }
          </script>
          <li>
            <label for="city_id"><?php echo $this->lang->line('label.end_user.default.city_id') ?></label>
            <div class="input">
              <select id="city_id" name="default_end_user_city_id" class="chzn chzn-done" style="visibility: visible;">
                <option value="0">
                  <?php echo $this->lang->line('label.option.select') ?>
                </option>
                <?php
                $ref_objs = $this->city_model->get_all();
                foreach ($ref_objs as $ref) {
                  ?>
                  <option value="<?php echo $ref["id"] ?>"
                          <?php echo empty($obj["default_end_user_city_id"]) || $obj["default_end_user_city_id"] != $ref["id"] ? "" : 'selected="selected"' ?>>
                            <?php echo $this->city_model->to_string($ref) ?>
                  </option>
                <?php } ?>
              </select>
            </div>
          </li>
        </ul>
      </fieldset>
    </div>
    <div class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="files">
      <fieldset>
        <ul class="ui-sortable">
          <li id="upload_path" class="">
            <label for="upload_path">
              <?php echo $this->lang->line('label.folder.upload') ?>
            </label>
            <div class="input type-text">
              <input name="upload_path" value="<?php echo isset($settings['upload_path']) ? $settings['upload_path'] : '' ?>"
                     id="upload_path" class="text width-20" type="text">								
            </div>            
          </li>
          <li id="allowed_types_image" class="">
            <label for="allowed_types_image">
              <?php echo $this->lang->line('label.allowed_types_image') ?>
            </label>
            <div class="input type-text">
              <input name="allowed_types_image" 
                     value="<?php echo isset($settings['allowed_types_image']) ? $settings['allowed_types_image'] : '' ?>" 
                     id="allowed_types_image" class="text width-20" type="text">								
            </div>            
          </li>
          <li id="allowed_types_document" class="">
            <label for="allowed_types_document">
              <?php echo $this->lang->line('label.allowed_types_document') ?>
            </label>
            <div class="input type-text">
              <input name="allowed_types_document" 
                     value="<?php echo isset($settings['allowed_types_document']) ? $settings['allowed_types_document'] : '' ?>" 
                     id="allowed_types_document" class="text width-20" type="text">								
            </div>            
          </li>
          <li id="allowed_types_file" class="">
            <label for="allowed_types_file">
              <?php echo $this->lang->line('label.allowed_types_file') ?>
            </label>
            <div class="input type-text">
              <input name="allowed_types_file" 
                     value="<?php echo isset($settings['allowed_types_file']) ? $settings['allowed_types_file'] : '' ?>" 
                     id="allowed_types_file" class="text width-20" type="text">								
            </div>            
          </li>
          <li id="allowed_types_compress" class="">
            <label for="allowed_types_compress">
              <?php echo $this->lang->line('label.allowed_types_compress') ?>
            </label>
            <div class="input type-text">
              <input name="allowed_types_compress" 
                     value="<?php echo isset($settings['allowed_types_compress']) ? $settings['allowed_types_compress'] : '' ?>" 
                     id="allowed_types_compress" class="text width-20" type="text">								
            </div>            
          </li>
          <li id="max_size_upload" class="">
            <label for="max_size_upload">
              <?php echo $this->lang->line('label.max_size_upload') ?>
            </label>
            <div class="input type-text">
              <input name="max_size_upload" 
                     value="<?php echo isset($settings['max_size_upload']) ? $settings['max_size_upload'] : '' ?>" 
                     id="max_size_upload" class="text width-20" type="text">								
            </div>            
          </li>
          <li class="" id="encrypt_name_upload">
            <label for="encrypt_name_upload">
              <?php echo $this->lang->line('label.encrypt_name_upload') ?>
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="encrypt_name_upload" 
                <?php echo isset($settings['encrypt_name_upload']) && $settings['encrypt_name_upload'] == '1' ? 'checked="checked"' : '' ?>
                       value="1" name="encrypt_name_upload"> <?php echo $this->lang->line('label.yes') ?></label>
              <label class="inline">
                <input type="radio" id="encrypt_name_upload" 
                <?php echo isset($settings['encrypt_name_upload']) && $settings['encrypt_name_upload'] == '0' ? 'checked="checked"' : '' ?>
                       value="0" name="encrypt_name_upload"> <?php echo $this->lang->line('label.no') ?></label>
            </div>            
          </li>
        </ul>
      </fieldset>
    </div>
    <div id="integration" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
      <fieldset>
        <ul class="ui-sortable">
          <li class="" id="googlemap_api">
            <label for="googlemap_api">
              <?php echo $this->lang->line('label.google.map.api') ?>
              <small><?php echo $this->lang->line('label.setting.google.map.api.note') ?></small>								
            </label>
            <div class="input type-text">
              <input type="text" class="text width-20" id="googlemap_api" 
                     value="<?php echo isset($settings['googlemap_api']) ? $settings['googlemap_api'] : '' ?>" 
                     name="googlemap_api">			
            </div>           
          </li>
          <li class="" id="ga_tracking">
            <label for="ga_tracking">
              <?php echo $this->lang->line('label.google.tracking.code') ?>
              <small><?php echo $this->lang->line('label.setting.google.tracking.code.note') ?></small>								
            </label>
            <div class="input type-text">
              <input type="text" class="text width-20" id="ga_tracking" 
                     value="<?php echo isset($settings['ga_tracking']) ? $settings['ga_tracking'] : '' ?>" 
                     name="ga_tracking">			
            </div>           
          </li>
          <li class="even" id="ga_profile">
            <label for="ga_profile">
              <?php echo $this->lang->line('label.google.analytic.profile') ?>
              <small><?php echo $this->lang->line('label.setting.google.analytic.profile.note') ?></small>
            </label>

            <div class="input type-text">
              <input type="text" class="text width-20" id="ga_profile" 
                     value="<?php echo isset($settings['ga_profile']) ? $settings['ga_profile'] : '' ?>" 
                     name="ga_profile">		
            </div>

          </li>
          <li class="" id="ga_email">
            <label for="ga_email">
              <?php echo $this->lang->line('label.google.analytic.email') ?>
              <small><?php echo $this->lang->line('label.setting.google.analytic.email.note') ?></small>
            </label>
            <div class="input type-text">
              <input type="text" class="text width-20" id="ga_email" 
                     value="<?php echo isset($settings['ga_email']) ? $settings['ga_email'] : '' ?>" 
                     name="ga_email">			
            </div>            
          </li>
          <li class="even" id="ga_password">
            <label for="ga_password">
              <?php echo $this->lang->line('label.google.analytic.password') ?>
              <small><?php echo $this->lang->line('label.setting.google.analytic.password.note') ?></small>
            </label>
            <div class="input type-password">
              <input type="password" autocomplete="off" class="text width-20" id="ga_password" 
                     value="<?php echo isset($settings['ga_password']) ? $settings['ga_password'] : '' ?>" 
                     name="ga_password">								
            </div>
          </li>
          <li class="" id="akismet_api_key">
            <label for="akismet_api_key">
              <?php echo $this->lang->line('label.akismet.api.key') ?>
              <small><?php echo $this->lang->line('label.setting.akismet.api.key.note') ?></small>
            </label>
            <div class="input type-text">
              <input type="text" class="text width-20" id="akismet_api_key" 
                     value="<?php echo isset($settings['akismet_api_key']) ? $settings['akismet_api_key'] : '' ?>" 
                     name="akismet_api_key">	
            </div>
          </li>
        </ul>
      </fieldset>
    </div>
    <div class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="email">
      <fieldset>
        <ul class="ui-sortable">
          <li class="" id="enable_email">
            <label for="enable_email">
              <?php echo $this->lang->line('label.enabled.email') ?>
              <small><?php echo $this->lang->line('label.setting.enabled.email.note') ?></small>				
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="enable_email" 
                <?php echo isset($settings['enable_email']) && $settings['enable_email'] == '1' ? 'checked="checked"' : '' ?>
                       value="1" name="enable_email"> <?php echo $this->lang->line('label.enabled') ?></label>
              <label class="inline">
                <input type="radio" id="enable_email" 
                <?php echo isset($settings['enable_email']) && $settings['enable_email'] == '0' ? 'checked="checked"' : '' ?>
                       value="0" name="enable_email"> <?php echo $this->lang->line('label.disabled') ?></label>
            </div>
          </li>
          <li id="contact_email" class="">
            <label for="contact_email">
              <?php echo $this->lang->line('label.contact_email') ?>
              <small>
                <?php echo $this->lang->line('label.setting.contact_email.note') ?>
              </small>								
            </label>

            <div class="input type-text">
              <input name="contact_email" 
                     value="<?php echo isset($settings['contact_email']) ? $settings['contact_email'] : '' ?>" 
                     id="contact_email" class="text width-20" type="text">
            </div>
          </li>
          <li id="sender_name" class="">
            <label for="sender_name">
              <?php echo $this->lang->line('label.sender_name') ?>
              <small><?php echo $this->lang->line('label.setting.sender_name.note') ?></small>								
            </label>
            <div class="input type-text">
              <input name="sender_name" 
                     value="<?php echo isset($settings['sender_name']) ? $settings['sender_name'] : '' ?>" 
                     id="sender_name" class="text width-20" type="text">
            </div>
          </li>
          <li id="server_email" class="even">
            <label for="server_email">
              <?php echo $this->lang->line('label.server.email') ?>
              <small><?php echo $this->lang->line('label.setting.server.email.note') ?></small>								
            </label>
            <div class="input type-text">
              <input name="server_email" 
                     value="<?php echo isset($settings['server_email']) ? $settings['server_email'] : '' ?>" 
                     id="server_email" class="text width-20" type="text">								
            </div>

          </li>
          <li id="mail_protocol" class="">
            <label for="mail_protocol">
              <?php echo $this->lang->line('label.mail.protocol') ?>
              <small><?php echo $this->lang->line('label.setting.mail.protocol.note') ?></small>						
            </label>

            <div class="input type-select">
              <select style="visibility: visible" id="selK4N" name="mail_protocol" class="width-20 chzn chzn-done">
                <option <?php echo isset($settings['mail_protocol']) && $settings['mail_protocol'] == 'smtp' ?'selected="selected"' : ''?>
                  value="smtp">SMTP</option>
                <option <?php echo isset($settings['mail_protocol']) && $settings['mail_protocol'] == 'localhost' ?'selected="selected"' : ''?>
                  value="localhost">Localhost</option>
              </select>
            </div>
          </li>
          <li id="smtp_host" class="even">
            <label for="smtp_host">
              <?php echo $this->lang->line('label.smtp.host') ?>							
              <small><?php echo $this->lang->line('label.setting.smtp.host.note') ?></small>						
            </label>

            <div class="input type-text">
              <input name="smtp_host" 
                     value="<?php echo isset($settings['smtp_host']) ? $settings['smtp_host'] : '' ?>" 
                     id="smtp_host" class="text width-20" type="text">					
            </div>

          </li>
          <li id="smtp_pass" class="">
            <label for="smtp_pass">
              <?php echo $this->lang->line('label.smtp.password') ?>
            </label>
            <div class="input type-password">
              <input name="smtp_pass" 
                     value="<?php echo isset($settings['smtp_pass']) ? $settings['smtp_pass'] : '' ?>" 
                     id="smtp_pass" class="text width-20" autocomplete="off" type="password">								
            </div>
          </li>
          <li id="smtp_port" class="even">
            <label for="smtp_port">
              <?php echo $this->lang->line('label.smtp.port') ?>
            </label>
            <div class="input type-text">
              <input name="smtp_port" 
                     value="<?php echo isset($settings['smtp_port']) ? $settings['smtp_port'] : '' ?>" 
                     id="smtp_port" class="text width-20" type="text">						
            </div>

          </li>
          <li id="smtp_user" class="">
            <label for="smtp_user">
              <?php echo $this->lang->line('label.smtp.username') ?>
            </label>
            <div class="input type-text">
              <input name="smtp_user" 
                     value="<?php echo isset($settings['smtp_user']) ? $settings['smtp_user'] : '' ?>" 
                     id="smtp_user" class="text width-20" type="text">							
            </div>
          </li>
        </ul>
      </fieldset>
    </div>
    <div class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom" id="paypal">
      <fieldset>
        <ul class="ui-sortable">
          <li class="" id="paypal_env">
            <label for="paypal_enabled">
              <?php echo $this->lang->line('label.paypal.enabled') ?>
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="paypal_enabled" 
                <?php echo isset($settings['paypal_enabled']) && $settings['paypal_enabled'] == '1' ? 'checked="checked"' : '' ?>
                       value="1" name="paypal_enabled"/> <?php echo $this->lang->line('label.paypal.enable') ?></label>
              <label class="inline">
                <input type="radio" id="paypal_enabled" 
                <?php echo isset($settings['paypal_enabled']) && $settings['paypal_enabled'] == '0' ? 'checked="checked"' : '' ?>
                       value="0" name="paypal_enabled"/> <?php echo $this->lang->line('label.paypal.disable') ?></label>
            </div>

          </li>
          <li class="">
            <label for="payment_account">
              <?php echo $this->lang->line('label.payment_account') ?>
            </label>
            <div class="input type-text">
              <input name="payment_account" value="<?php echo isset($settings['payment_account']) ? $settings['payment_account'] : '' ?>" 
                     id="payment_account" class="text width-20" type="text"/>
            </div>
          </li>
          <li class="">
            <label for="payment_currency">
              <?php echo $this->lang->line('label.payment_currency') ?>
            </label>
            <div class="input type-text">
              <input name="payment_currency" value="<?php echo isset($settings['payment_currency']) ? $settings['payment_currency'] : '' ?>" 
                     id="payment_currency" class="text width-20" type="text"/>
            </div>
          </li>
          <li class="">
            <label for="payment_provider_amount">
              <?php echo $this->lang->line('label.payment_provider_amount') ?>
            </label>
            <div class="input type-text">
              <input name="payment_provider_amount" value="<?php echo isset($settings['payment_provider_amount']) ? $settings['payment_provider_amount'] : '0' ?>" 
                     id="payment_provider_amount" class="text width-20" type="text"/>
            </div>
          </li>
          <li class="">
            <label for="payment_provider_active_date">
              <?php echo $this->lang->line('label.payment_provider_active_date') ?>
            </label>
            <div class="input type-text">
              <input name="payment_provider_active_date" value="<?php echo isset($settings['payment_provider_active_date']) ? $settings['payment_provider_active_date'] : '0' ?>" 
                     id="payment_provider_active_date" class="text width-20" type="text"/>
            </div>
          </li>
          <li >
            <label for="paypal_env">
              <?php echo $this->lang->line('label.paypal.enviroment') ?>
            </label>
            <div class="input type-radio">
              <label class="inline">
                <input type="radio" id="paypal_env" 
                <?php echo isset($settings['paypal_env']) && $settings['paypal_env'] == '1' ? 'checked="checked"' : '' ?>
                       value="1" name="paypal_env"/> <?php echo $this->lang->line('label.paypal.enviroment.product') ?></label>
              <label class="inline">
                <input type="radio" id="paypal_env" 
                <?php echo isset($settings['paypal_env']) && $settings['paypal_env'] == '0' ? 'checked="checked"' : '' ?>
                       value="0" name="paypal_env"/> <?php echo $this->lang->line('label.paypal.enviroment.test') ?></label>
            </div>

          </li>
        </ul>
      </fieldset>
    </div>
  </div>
  <div class="buttons padding-top">
    <button type="submit" name="btnAction" value="save" class="btn blue">
      <span><?php echo $this->lang->line('btn.save') ?></span>
    </button>
  </div>

</form>	
<?php $this->load->view('admin/_end') ?>